package com.lekang.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lekang.common.core.domain.entity.SysUser;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lekang.common.annotation.Excel;
import com.lekang.common.core.domain.BaseEntity;

/**
 * 订单管理对象 order_management
 * 
 * @author zhihao
 * @date 2025-10-15
 */
@Data
public class OrderManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Excel(name = "序号")
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 老人外键 */
    @Excel(name = "老人外键")
    private Long elderlyId;

    /** 护理项目外键 */
    @Excel(name = "护理项目外键")
    private Long nursingItemId;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal orderAmount;

    /** 期望服务时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "期望服务时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expectedServiceTime;

    /** 下单人外键 */
    @Excel(name = "下单人外键")
    private Long orderUserId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    /** 交易状态 */
    @Excel(name = "交易状态")
    private String transactionStatus;

    /** 取消原因 */
    private String cancelReason;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Long isDeleted;

    /** 额外字段1 */
    @Excel(name = "额外字段1")
    private String extraField1;

    /** 额外字段2 */
    @Excel(name = "额外字段2")
    private String extraField2;

//    连表查询

    private Elderly elderly;

    private SysUser sysUser;


    private NursingItem nursingItem;

    private Bed bed;

    private String nickname;
    private String name;
    private FamilyMember familyMember;
    private String faname;

private String nuname;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setElderlyId(Long elderlyId) 
    {
        this.elderlyId = elderlyId;
    }

    public Long getElderlyId() 
    {
        return elderlyId;
    }

    public void setNursingItemId(Long nursingItemId) 
    {
        this.nursingItemId = nursingItemId;
    }

    public Long getNursingItemId() 
    {
        return nursingItemId;
    }

    public void setOrderAmount(BigDecimal orderAmount) 
    {
        this.orderAmount = orderAmount;
    }

    public BigDecimal getOrderAmount() 
    {
        return orderAmount;
    }

    public void setExpectedServiceTime(Date expectedServiceTime) 
    {
        this.expectedServiceTime = expectedServiceTime;
    }

    public Date getExpectedServiceTime() 
    {
        return expectedServiceTime;
    }

    public void setOrderUserId(Long orderUserId) 
    {
        this.orderUserId = orderUserId;
    }

    public Long getOrderUserId() 
    {
        return orderUserId;
    }

    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }

    public void setTransactionStatus(String transactionStatus) 
    {
        this.transactionStatus = transactionStatus;
    }

    public String getTransactionStatus() 
    {
        return transactionStatus;
    }

    public void setCancelReason(String cancelReason) 
    {
        this.cancelReason = cancelReason;
    }

    public String getCancelReason() 
    {
        return cancelReason;
    }

    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    public void setExtraField1(String extraField1) 
    {
        this.extraField1 = extraField1;
    }

    public String getExtraField1() 
    {
        return extraField1;
    }

    public void setExtraField2(String extraField2) 
    {
        this.extraField2 = extraField2;
    }

    public String getExtraField2() 
    {
        return extraField2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("elderlyId", getElderlyId())
            .append("nursingItemId", getNursingItemId())
            .append("orderAmount", getOrderAmount())
            .append("expectedServiceTime", getExpectedServiceTime())
            .append("orderUserId", getOrderUserId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("orderStatus", getOrderStatus())
            .append("transactionStatus", getTransactionStatus())
            .append("cancelReason", getCancelReason())
            .append("isDeleted", getIsDeleted())
            .append("extraField1", getExtraField1())
            .append("extraField2", getExtraField2())
            .toString();
    }
}
